package com.goldsprite.ruletilemap.gdxexamples;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.utils.ScreenUtils;
import com.badlogic.gdx.utils.viewport.FitViewport;

public class GdxLauncher extends ApplicationAdapter {
	private SpriteBatch batch;
	private ShapeRenderer shapeRenderer;
	private Texture logo, background;
	private Color backgroundColor = Color.valueOf("#000000FF"), clearColor = Color.valueOf("#333333FF");

	static float worldWidth = 960, worldHeight = 540;
	private FitViewport worldViewport;
	private OrthographicCamera cam;
	private GdxDemo gdxDemo;

	public static float getWorldWidth() { return worldWidth; }
	public static float getWorldHeight() { return worldHeight; }


	@Override
	public void create() {
		gdxDemo = new GdxDemo();
		gdxDemo.create();
	}

	@Override
	public void render() {
		gdxDemo.render();
	}

	@Override
	public void resize(int width, int height) {
		gdxDemo.resize(width, height);
	}

	@Override
	public void dispose() {
		gdxDemo.dispose();
	}
}

